package com.ultron.app.modules.system.entity.sysDic.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;


/**
 * 标题：系统字典(Excel业务对象)
 * 说明：系统字典(Excel业务对象)，作为基础新增、修改操作的入参
 * 时间：2024-4-24
 * 作者：admin
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@Accessors(chain = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统字典(Excel业务对象)")
public class SysDicExcelBO implements Serializable {
    private static final long serialVersionUID = 1L;



    /** 字典分类：ORD_STATUS */
    @ApiModelProperty(value = "字典分类：ORD_STATUS")
    @ExcelProperty("字典分类：ORD_STATUS")
    private String type;

    /** 字典名称：订单状态 */
    @ApiModelProperty(value = "字典名称：订单状态")
    @ExcelProperty("字典名称：订单状态")
    private String typeTxt;

    /** 字典标题：待付款 */
    @ApiModelProperty(value = "字典标题：待付款")
    @ExcelProperty("字典标题：待付款")
    private String title;

    /** 字典名称：DFK */
    @ApiModelProperty(value = "字典名称：DFK")
    @ExcelProperty("字典名称：DFK")
    private String file;

    /** 字典值：1 */
    @ApiModelProperty(value = "字典值：1")
    @ExcelProperty("字典值：1")
    private String val;

    /** 排序：1 */
    @ApiModelProperty(value = "排序：1")
    @ExcelProperty("排序：1")
    private Integer ord;

    /** 字典描述 */
    @ApiModelProperty(value = "字典描述")
    @ExcelProperty("字典描述")
    private String des;









    /**
     * 改造Excel模版
     * @return
     */
    public SysDicExcelBO buildExportModule(){
        this.type = "字典分类：ORD_STATUS";
        this.typeTxt = "字典名称：订单状态";
        this.title = "字典标题：待付款";
        this.file = "字典名称：DFK";
        this.val = "字典值：1";
        this.ord = 0;
        this.des = "字典描述";
        return this;
    }
}